package com.atguigu.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.sql.DataSource;

@RestController
public class HelloController {
    @Qualifier("createC3P0DataSource")
    @Autowired
    DataSource dataSource;
    @RequestMapping("/hello")
    public String helloTest() {
        System.out.println(dataSource.getClass());
        return "Hello springboot" ;
    }
}
